package cn.tedu.mycoolshark.controller;

import cn.tedu.mycoolshark.entity.Banner;
import cn.tedu.mycoolshark.map.BannerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class BannerContriller {
    @Autowired
    BannerMapper mapper;
    @RequestMapping("/banner/select")
    public List<Banner> select(Banner banner){
        return mapper.select(banner);
    }
}
